using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SnsUserInfo : GeneratedMessageLite<SnsUserInfo, SnsUserInfo.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SnsUserInfo, SnsUserInfo.Builder>
		{
			private bool resultIsReadOnly;
			private SnsUserInfo result;
			protected override SnsUserInfo.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SnsUserInfo MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SnsUserInfo DefaultInstanceForType
			{
				get
				{
					return SnsUserInfo.DefaultInstance;
				}
			}
			public uint SnsFlag
			{
				get
				{
					return this.result.SnsFlag;
				}
				set
				{
					this.SetSnsFlag(value);
				}
			}
			public string SnsBGImgID
			{
				get
				{
					return this.result.SnsBGImgID;
				}
				set
				{
					this.SetSnsBGImgID(value);
				}
			}
			public ulong SnsBGObjectID
			{
				get
				{
					return this.result.SnsBGObjectID;
				}
				set
				{
					this.SetSnsBGObjectID(value);
				}
			}
			public Builder()
			{
				this.result = SnsUserInfo.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SnsUserInfo cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SnsUserInfo PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SnsUserInfo other = this.result;
					this.result = new SnsUserInfo();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SnsUserInfo.Builder Clear()
			{
				this.result = SnsUserInfo.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SnsUserInfo.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SnsUserInfo.Builder(this.result);
				}
				return new SnsUserInfo.Builder().MergeFrom(this.result);
			}
			public override SnsUserInfo BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SnsUserInfo.Builder MergeFrom(IMessageLite other)
			{
				if (other is SnsUserInfo)
				{
					return this.MergeFrom((SnsUserInfo)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SnsUserInfo.Builder MergeFrom(SnsUserInfo other)
			{
				return this;
			}
			public override SnsUserInfo.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SnsUserInfo.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SnsUserInfo._snsUserInfoFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SnsUserInfo._snsUserInfoFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 8u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 8u)
						{
							this.result.hasSnsFlag = input.ReadUInt32(ref this.result.snsFlag_);
							continue;
						}
					}
					else
					{
						if (num3 == 18u)
						{
							this.result.hasSnsBGImgID = input.ReadString(ref this.result.snsBGImgID_);
							continue;
						}
						if (num3 == 24u)
						{
							this.result.hasSnsBGObjectID = input.ReadUInt64(ref this.result.snsBGObjectID_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public SnsUserInfo.Builder SetSnsFlag(uint value)
			{
				this.PrepareBuilder();
				this.result.hasSnsFlag = true;
				this.result.snsFlag_ = value;
				return this;
			}
			public SnsUserInfo.Builder ClearSnsFlag()
			{
				this.PrepareBuilder();
				this.result.hasSnsFlag = false;
				this.result.snsFlag_ = 0u;
				return this;
			}
			public SnsUserInfo.Builder SetSnsBGImgID(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasSnsBGImgID = true;
				this.result.snsBGImgID_ = value;
				return this;
			}
			public SnsUserInfo.Builder ClearSnsBGImgID()
			{
				this.PrepareBuilder();
				this.result.hasSnsBGImgID = false;
				this.result.snsBGImgID_ = "";
				return this;
			}
			public SnsUserInfo.Builder SetSnsBGObjectID(ulong value)
			{
				this.PrepareBuilder();
				this.result.hasSnsBGObjectID = true;
				this.result.snsBGObjectID_ = value;
				return this;
			}
			public SnsUserInfo.Builder ClearSnsBGObjectID()
			{
				this.PrepareBuilder();
				this.result.hasSnsBGObjectID = false;
				this.result.snsBGObjectID_ = 0uL;
				return this;
			}
		}
		public const int SnsFlagFieldNumber = 1;
		public const int SnsBGImgIDFieldNumber = 2;
		public const int SnsBGObjectIDFieldNumber = 3;
		private static readonly SnsUserInfo defaultInstance;
		private static readonly string[] _snsUserInfoFieldNames;
		private static readonly uint[] _snsUserInfoFieldTags;
		private bool hasSnsFlag;
		private uint snsFlag_;
		private bool hasSnsBGImgID;
		private string snsBGImgID_ = "";
		private bool hasSnsBGObjectID;
		private ulong snsBGObjectID_;
		private int memoizedSerializedSize = -1;
		public static SnsUserInfo DefaultInstance
		{
			get
			{
				return SnsUserInfo.defaultInstance;
			}
		}
		public override SnsUserInfo DefaultInstanceForType
		{
			get
			{
				return SnsUserInfo.DefaultInstance;
			}
		}
		protected override SnsUserInfo ThisMessage
		{
			get
			{
				return this;
			}
		}
		public uint SnsFlag
		{
			get
			{
				return this.snsFlag_;
			}
		}
		public string SnsBGImgID
		{
			get
			{
				return this.snsBGImgID_;
			}
		}
		public ulong SnsBGObjectID
		{
			get
			{
				return this.snsBGObjectID_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasSnsFlag;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasSnsFlag)
				{
					num += CodedOutputStream.ComputeUInt32Size(1, this.SnsFlag);
				}
				if (this.hasSnsBGImgID)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.SnsBGImgID);
				}
				if (this.hasSnsBGObjectID)
				{
					num += CodedOutputStream.ComputeUInt64Size(3, this.SnsBGObjectID);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SnsUserInfo()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] snsUserInfoFieldNames = SnsUserInfo._snsUserInfoFieldNames;
			if (this.hasSnsFlag)
			{
				output.WriteUInt32(1, snsUserInfoFieldNames[2], this.SnsFlag);
			}
			if (this.hasSnsBGImgID)
			{
				output.WriteString(2, snsUserInfoFieldNames[0], this.SnsBGImgID);
			}
			if (this.hasSnsBGObjectID)
			{
				output.WriteUInt64(3, snsUserInfoFieldNames[1], this.SnsBGObjectID);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasSnsFlag)
			{
				num ^= this.snsFlag_.GetHashCode();
			}
			if (this.hasSnsBGImgID)
			{
				num ^= this.snsBGImgID_.GetHashCode();
			}
			if (this.hasSnsBGObjectID)
			{
				num ^= this.snsBGObjectID_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			SnsUserInfo snsUserInfo = object_0 as SnsUserInfo;
			return snsUserInfo != null && (this.hasSnsFlag == snsUserInfo.hasSnsFlag && (!this.hasSnsFlag || this.snsFlag_.Equals(snsUserInfo.snsFlag_))) && (this.hasSnsBGImgID == snsUserInfo.hasSnsBGImgID && (!this.hasSnsBGImgID || this.snsBGImgID_.Equals(snsUserInfo.snsBGImgID_))) && (this.hasSnsBGObjectID == snsUserInfo.hasSnsBGObjectID && (!this.hasSnsBGObjectID || this.snsBGObjectID_.Equals(snsUserInfo.snsBGObjectID_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SnsUserInfo, SnsUserInfo.Builder>.PrintField("SnsFlag", this.hasSnsFlag, this.snsFlag_, writer);
			GeneratedMessageLite<SnsUserInfo, SnsUserInfo.Builder>.PrintField("SnsBGImgID", this.hasSnsBGImgID, this.snsBGImgID_, writer);
			GeneratedMessageLite<SnsUserInfo, SnsUserInfo.Builder>.PrintField("SnsBGObjectID", this.hasSnsBGObjectID, this.snsBGObjectID_, writer);
		}
		public static SnsUserInfo ParseFrom(byte[] data)
		{
			return SnsUserInfo.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SnsUserInfo MakeReadOnly()
		{
			return this;
		}
		public static SnsUserInfo.Builder CreateBuilder()
		{
			return new SnsUserInfo.Builder();
		}
		public override SnsUserInfo.Builder ToBuilder()
		{
			return SnsUserInfo.CreateBuilder(this);
		}
		public override SnsUserInfo.Builder CreateBuilderForType()
		{
			return new SnsUserInfo.Builder();
		}
		public static SnsUserInfo.Builder CreateBuilder(SnsUserInfo prototype)
		{
			return new SnsUserInfo.Builder(prototype);
		}
		static SnsUserInfo()
		{
			SnsUserInfo.defaultInstance = new SnsUserInfo().MakeReadOnly();
			SnsUserInfo._snsUserInfoFieldNames = new string[]
			{
				"SnsBGImgID",
				"SnsBGObjectID",
				"SnsFlag"
			};
			SnsUserInfo._snsUserInfoFieldTags = new uint[]
			{
				18u,
				24u,
				8u
			};
			object.ReferenceEquals(micromsg.Proto.SnsUserInfo.Descriptor, null);
		}
	}
}
